<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: HP
  Date: 2020-07-22
  Time: 11:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>管理员中心</title>
    <link rel="stylesheet" type="text/css" href="css/common.css"/>
    <link rel="stylesheet" type="text/css" href="css/main.css"/>
    <script type="text/javascript" src="js/libs/modernizr.min.js"></script>
</head>
<body>
<div class="topbar-wrap white">
    <!--<div class="topbar-inner clearfix">-->
    <div class="topbar-logo-wrap clearfix">
        <h1 class="topbar-logo none">
            <a href="index.html" class="navbar-brand">管理员中心</a>
        </h1>
    </div>
</div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li><a href="#"><i class="icon-font">&#xe003;</i>图书管理</a>
                    <ul class="sub-menu">
                        <li><a href="p_list.html"><i class="icon-font">&#xe008;</i>图书列表</a></li>
                    </ul></li>
            </ul>
        </div>
    </div>
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="#" color="#white">修改图书信息</a><span class="crumb-step"></span><span class="crumb-name"></span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="/BookManage/updateBook?id=${bookInfo.id}" method="post" id="myform" name="myform" >
                    <table class="insert-tab" width="100%">
                        <tbody>
                        <tr>
                            <th><i class="require-red">*</i>书名：</th>
                            <td>
                                <input class="common-text required" id="title" size="50" value="${bookInfo.bookName}" type="text" name="bookName">
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>价格：</th>
                            <td>
                                <input class="common-text required" id="title" size="50" value="${bookInfo.price}" type="text" name="price">
                            </td>
                        </tr>
                        <tr>
                            <th width="120"><i class="require-red">*</i>类型：</th>
                            <td>
                                <select id="catid" class="required" name="typeId">

                                    <c:forEach items="${typeList}" var="type">
                                        <option value="${type.typeId}" ${type.typeId==bookInfo.typeId?"selected":""} >${type.typeName}</option>
                                    </c:forEach>

                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>出版时间：</th>
                            <td>
                                <input class="common-text required" id="title" size="50" value="${bookInfo.bornDate}" type="text" name="bornDate">
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>图片：</th>
                            <td><input id="" value="${bookInfo.imgUrl}" type="file" name="imgUrl"></td>
                        </tr>
                        <tr>
                            <th>状态：</th>
                            <td>
                                <input type="radio" checked="checked" name="state" value="1"/>已审核
                                &nbsp;
                                <input type="radio" name="state" value="-1" ${bookInfo.state!=1?"checked":""} />未审核
                            </td>
                        </tr>
                        <tr>
                            <th><i class="require-red">*</i>进货库存：</th>
                            <td>
                                <input class="common-text required" id="title" size="50" value="${bookInfo.stock}" type="text" name="stock">
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <input class="btn btn-primary btn6 mr10" value="发布" type="submit">
                                <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
</body>
</html>
